package com.atmilan.quartz.mapper;

import com.atmilan.quartz.model.entity.paolo.PaoloProductSku;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * 功能描述: paolo商品sku
 * @Author: wangzh
 * @Date: 2023/2/8 17:01
 */
@DS("source_hiku")
public interface PaoloProductSkuMapper extends BaseMapper<PaoloProductSku> {

    @Update("truncate table paolo_product_sku")
    void deleteAll();

    @Update("truncate table paolo_product_sku_back")
    void deleteProductSkuBack();

    @Update("insert into paolo_product_sku_back select * from paolo_product_sku")
    void copyProductSkuBack();
}
